/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package im.clusterhead;

import im.general.AbstractListenBehaviour;
import im.general.Config;
import im.messages.BaseMessage;
import jade.lang.acl.ACLMessage;
import jade.lang.acl.MessageTemplate;

/**
 *
 * @author brownstone
 */
public class PublishListenBehaviour extends AbstractListenBehaviour{
    ClusterHeadAgent ch;

    public PublishListenBehaviour(ClusterHeadAgent ch) {
        this.ch = ch;
        //mt = MessageTemplate.MatchPerformative(BaseMessage.PUBLISH);
        mt = MessageTemplate.MatchEncoding(Config.PUBLISH_NAME);
    }
    
    @Override
    protected void handleMessage(ACLMessage msg) {
        System.out.println("CH publishlistenbehaviour handling");
    }
}
